package cn.ifavor.googleplay.utils;

import android.view.ViewParent;
import android.widget.ScrollView;

public class ViewUtils {
	public static ViewParent getParentScrollView(ViewParent parent){
		if (parent instanceof ScrollView){
			return parent;
		} else {
			return getParentScrollView(parent.getParent());
		} 
	}
}
